<html>
<head>
<script src="http://code.jquery.com/jquery-2.0.3.js"> </script>
<style>
div {
    width: 400px;
    height: 300px;
    color: white;
    border: 1px solid black;
    background:blue;
    margin: 10px;
    font-size: 96px;
    float : left;
}
</style>
<script>
\$(function() {
    \$('div').click(function() {
        \$.ajax({
            url: 'Ctrl?action='+\$(this).attr('value')
        });
    });
})
</script>
</head>
<body>
<div value='0'> Forward </div>
<div value='1'> Backward </div>
<div value='2'> TurnLeft </div>
<div value='3'> TurnRight </div>
<div value='4'> Rotate<br />Left </div>
<div value='5'> Rotate<br />Right </div>
<div value='6'> Stop </div>
</body>
</html>
